home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
PRINTER
/
PCLTOOLS
/
psprite
/
psprite.ma
< prev
Wrap
Text File
|
1997-10-05
|
4KB
|
101 lines
psprite - dither sprites to B/W or CMYK sprites / PCL data
==========================================================
Initially it was supposed to just print sprites - hence the name. Well,
_really_ initially I just wanted to see how long it takes to b/w-dither
(error-diffusion) a page @ 600dpi. But like so often it just grew and
grew...
The output can be either a sprite or PCL data. While the b/w PCL data
should be usable on pretty much any PCL printer the colour-PCL can only
be used on CMYK printers (the keyword being `K').
Disadvantages compared to using !Printers:
- Command-line driven.
- Can only print sprites, no mixing in of text or drawfiles possible.
- Gotta specify the size by hand and accurately.
Advantages:
- About 4 times faster.
- Runs in the background in a taskwindow.
- Neither source sprite nor the resulting data has to fit in memory.
You can easily print a 20MB sprite from a 640k TaskWindow. The
available memory will be used as a buffer, i.e. the larger your
WimpSlot the more efficiently it runs (although you shouldn't
need more than 1MB ever).
- Can print new type sprites (16, 32bpp) on old machines.
- Brightness control.
Brightness control is done using a cubic polynome. The default is a
straight line; the fixpoints are f(0) = 0 and f(X) = X where X is
the maximum spectral value. You can specify the values to use at
X/3 and 2X/3 to determine the curve.
With B/W spectral values range from 0 to 765. The picture gets lighter
by setting f(X/3) > X/3 and f(2X/3) > 2X/3. Good brightness for a 600dpi
Laserjet is -B352,576.
With CMYK spectral values range from 0 to 255. The picture gets lighter
by setting f(X/3) < X/3 and f(2X/3) < 2X/3.
Switches:
---------
-B#,# Brightness control for B/W. The default function is a straight
line, i.e. -B255,510
-C#,# Brightness control for Cyan. The default function is a straight
line, i.e. -C85,170
-M#,# Brightness control for Magenta. See Cyan.
-Y#,# Brightness control for Yellow. See Cyan.
-x# (maximum) width. Default value is 1024.
-y# (maximum) height. If no maximum height is given the destination
data will have the width specified with -x. Otherwise the width
will be shrunk if the height would exceed the value specified
with -y. Sprites are always plotted preserving the ratio.
-q Slightly faster ditherer that uses 2-way error-diffusion. The
default ditherer does a somewhat more sophisticated 3-way
diffusion.
-c Colour (CMYK) output. Default is B/W.
-h Hourglass and percentage, otherwise no feedback.
-p Output is PCL data. Default is sprite.
The following switches only have a meaning when using PCL output:
-d# dpi to use in the printer. Default 600.
-u# x-position of raster area in resolution-units. Default 100.
-v# y-position of raster area in resolution-units. Default 100.
-f# Page format number. Default 26 (A4). See PCL manuals.
-s don't reset printer.
-n no formfeed. In conjunction with -s you can print multiple
sprites on one page: for the first one just turn off the
formfeed (-n). For each but the last turn off both reset
and formfeed (-n -s). For the last just turn off the reset
(-s). Make sure you issue the right positioning commands
when you do this or you'll superimpose all your sprites.
-r CMYK only: rich black, i.e. print CMY-black in addition to
K-black. Default off.
THIS PROGRAM IS FREEWARE. YOU MAY COPY IT FREELY AS LONG AS NO PART OF IT
IS CHANGED AND IT'S NOT SOLD FOR PROFIT. I RETAIN THE COPYRIGHT.
I WILL NOT ACCEPT ANY RESPONSIBLITY FOR ANY DAMAGES CAUSED BY THE USE OF
THIS PROGRAM, IMPLICITLY OR EXPLICITLY. USE IT ENTIRELY AT YOUR OWN RISK.
Andreas Dehmel
Am Schorn 18
82327 Tutzing
Germany
dehmel@forwiss.tu-muenchen.de